# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: 7heo <7heo@mail.com>
# Maintainer:
pkgname=libofx
pkgver=0.10.3
pkgrel=0
pkgdesc="OFX banking protocol abstraction library"
url="https://github.com/libofx/libofx"
arch="all"
license="GPL-2.0-or-later"
makedepends="bash automake autoconf libtool gengetopt opensp-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/libofx/libofx/archive/$pkgver.tar.gz"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-static
	make -j1
}

package() {
	make -j1 DESTDIR="$pkgdir" install
}

sha512sums="
6c024628a6a11d9542c669a438223331a033eb820b1a2c3001c60d1ab3fad45ccdec64f9b54dd206fe0058ead8e14e751eb7a3bd88e8f9e1013b0bdd5b6c5242  libofx-0.10.3.tar.gz
"
